
import request from '@/router/axios'
//生产订单列表
export function getTuZhiDai(params) {
  return request({
    url: '/get_tuzhi_dai.php',
    method: 'get',
    params
  })
}
//生产计划列表
export function getTuzhiJihua(params) {
  return request({
    url: '/get_tuzhi_jihua.php',
    method: 'get',
    params
  })
}
//加工中列表
export function getTuzhiZhong(params) {
  return request({
    url: '/get_tuzhi_zhong.php',
    method: 'get',
    params
  })
}
//加工完成列表
export function getTuzhiFinish(params) {
  return request({
    url: '/get_tuzhi_finish.php',
    method: 'get',
    params
  })
}
//全部列表
export function getTuzhiAll(params) {
  return request({
    url: '/get_tuzhi_all.php',
    method: 'get',
    params
  })
}
//设备管理列表
export function getShebei(query) {
  return request({
    url: '/get_shebei.php',
    method: 'get',
    params: query
  })
}
// 删除用户
export function delUser(userId) {
  return request({
    url: '/system/user/delete?id=' + userId,
    method: 'delete'
  })
}
// 导出用户
export function exportUser(query) {
  return request({
    url: '/system/user/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
// 修改用户个人信息
export function updateUserProfile(data) {
  return request({
    url: '/system/user/profile/update',
    method: 'put',
    data: data
  })
}
